/*
 * AppClient.java
 *
 * Created on April 12, 2007, 9:06 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.atomojo.app.client;

import org.restlet.data.Cookie;


/**
 *
 * @author alex
 */
public class AppClient implements XML
{

   protected Identity identity;
   protected Cookie cookie;
   
   /** Creates a new instance of AppClient */
   protected AppClient()
   {
      identity = null;
   }
   
   /** Creates a new instance of AppClient */
   protected AppClient(Identity identity)
   {
      this.identity = identity;
   }
   
   public void setCookie(Cookie cookie)
   {
      this.cookie = cookie;
   }
   
   public void setIdentity(String username,String password)
   {
      this.identity = new Identity(username,password);
   }
   
   public void setIdentity(Identity identity)
   {
      this.identity = identity;
   }
   
   public Identity getIdentity() {
      return identity;
   }
   
}
